package com.jiangyao;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.oas.annotations.EnableOpenApi;

/**
 * java -jar xxx.jar --spring.profiles.active=sit
 *
 * @author yangyongchuan
 */
@SpringBootApplication(scanBasePackages = {"com.jiangyao"})
@MapperScan("com.jiangyao.dao")
@EnableAsync
@EnableTransactionManagement
@EnableScheduling
@Slf4j
@EnableOpenApi
public class BackendApplication {

	public static void main(String[] args) {
		SpringApplication.run(BackendApplication.class, args);
		log.info("匠要-后台backend接口-启动成功");

	}

}
